Returns a value corresponding to the ODBC connection handle.
Syntax
object.hDbc
The object placeholder represents an object expression that evaluates to an object in the Applies To list.
Return Values
The hDbc property returns a Long value containing the ODBC connection handle created by the ODBC driver manager corresponding to the specified rdoConnection object.
Remarks
This handle can be used to execute ODBC functions that require an ODBC hDbc connection handle.
Note While it is possible to execute ODBC API functions using the ODBC hEnv, hDbc, and hStmt handles, it is recommended that you do so with caution. Improper use of arbitrary ODBC API functions using these handles can result in unpredictable behavior. You should not attempt to save this handle in a variable for use at a later time as the value is subject to change.
If your application requires access to special ODBC connection option settings, these should be set or retrieved using the hDbc property before the connection is established. Resetting ODBC settings of any kind after the connection is established can result in unpredictable behavior.